﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReporterApplication.Expressions
{
    public abstract class Logical
    {
        public Logical Next { get; set; }

        public string stringExp;
        public Func<ExpArgs, bool> Exp { get; set; }

        public void SetExp(string strExp, Func<ExpArgs, bool> exp)
        {
            stringExp = strExp;
            Exp = exp;
        }

        public abstract bool Eval(ExpArgs args);
    }
}
